Optimal. Leaf size=19 \[ \frac{\coth ^3(x)}{3 a}-\frac{\coth (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0478624, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3175, 3767} \[ \frac{\coth ^3(x)}{3 a}-\frac{\coth (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3767
Rubi steps
\begin{align*} \int \frac{\text{csch}^2(x)}{a-a \cosh ^2(x)} \, dx &=-\frac{\int \text{csch}^4(x) \, dx}{a}\\ &=-\frac{i \operatorname{Subst}\left (\int \left (1+x^2\right ) \, dx,x,-i \coth (x)\right )}{a}\\ &=-\frac{\coth (x)}{a}+\frac{\coth ^3(x)}{3 a}\\ \end{align*}
Mathematica [A] time = 0.0039976, size = 22, normalized size = 1.16 \[ -\frac{\frac{2 \coth (x)}{3}-\frac{1}{3} \coth (x) \text{csch}^2(x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.025, size = 37, normalized size = 2. \begin{align*}{\frac{1}{8\,a} \left ({\frac{1}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3}}-3\,\tanh \left ( x/2 \right ) -3\, \left ( \tanh \left ( x/2 \right ) \right ) ^{-1}+{\frac{1}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.07968, size = 82, normalized size = 4.32 \begin{align*} -\frac{4 \, e^{\left (-2 \, x\right )}}{3 \, a e^{\left (-2 \, x\right )} - 3 \, a e^{\left (-4 \, x\right )} + a e^{\left (-6 \, x\right )} - a} + \frac{4}{3 \,{\left (3 \, a e^{\left (-2 \, x\right )} - 3 \, a e^{\left (-4 \, x\right )} + a e^{\left (-6 \, x\right )} - a\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.78691, size = 317, normalized size = 16.68 \begin{align*} \frac{8 \,{\left (\cosh \left (x\right ) + 2 \, \sinh \left (x\right )\right )}}{3 \,{\left (a \cosh \left (x\right )^{5} + 5 \, a \cosh \left (x\right ) \sinh \left (x\right )^{4} + a \sinh \left (x\right )^{5} - 3 \, a \cosh \left (x\right )^{3} +{\left (10 \, a \cosh \left (x\right )^{2} - 3 \, a\right )} \sinh \left (x\right )^{3} +{\left (10 \, a \cosh \left (x\right )^{3} - 9 \, a \cosh \left (x\right )\right )} \sinh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) +{\left (5 \, a \cosh \left (x\right )^{4} - 9 \, a \cosh \left (x\right )^{2} + 4 \, a\right )} \sinh \left (x\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \frac{\int \frac{\operatorname{csch}^{2}{\left (x \right )}}{\cosh ^{2}{\left (x \right )} - 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27094, size = 28, normalized size = 1.47 \begin{align*} \frac{4 \,{\left (3 \, e^{\left (2 \, x\right )} - 1\right )}}{3 \, a{\left (e^{\left (2 \, x\right )} - 1\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]